package org.example.demo18_strategy;

public class SaleMan {
    private Strategy strategy;

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public SaleMan(Strategy strategy) {
        this.strategy = strategy;
    }

    public void saleManShow(){
        strategy.show();
    }
}
